package com.fintecher.service.serviceImpl;

import com.fintecher.dao.IPositiveDao;
import com.fintecher.pojo.Positive;
import com.fintecher.service.IPositiveService;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.List;

@Service("positiveService")
public class PositiveServiceImpl implements IPositiveService {
    @Resource
    private IPositiveDao positiveDao;

    /**
     * 传入一个查询的对象
     */
    public List<Positive> selectAll(Positive positive) {
        return positiveDao.selectAll(positive);
    }

    /**
     * 更新票据状态
     *
     * @return
     */
    public Boolean updatePositive() {
        return positiveDao.updatePositive();
    }

    public Positive selectOne(String positiveNumber) {
        return positiveDao.selectOne(positiveNumber);
    }
}
